package main

import (
	"ShopSupplierApi/controllers"
	_ "ShopSupplierApi/docs"
	_ "ShopSupplierApi/routers"
	_ "ShopSupplierApi/socket"

	"github.com/astaxie/beego"
)

func main() {
	if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/api"] = "swagger"
	}
	//socket.ServerStart(1024)
	beego.ErrorController(&controllers.LcfController{})
	beego.Run()
}
